package com.example.yuejian21.nongfusanquan.yuejian21.service;

import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Clubcoursebean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Collectcoursebean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Coursebean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.IsCollectcoursebean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Orderbean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Nongfusanquan on 2017-10-12.
 */

public interface CourseService {
    @GET("Train/getTrainlist")
    Call<List<Coursebean>> getTrainlist();

    @GET("Train/getTrainlista")
    Call<List<Clubcoursebean>> getclubcourse();

    //报名培训
    @GET("Train/addtrainn")
    Call<Orderbean> addtrainn(@Query("u_id") int u_id,
                              @Query("t_id") int t_id);

    @GET("Train/getDetail")
    Call<Coursebean> getDetail(@Query("t_id") int t_id);
}
